package com.day15.ex07;

public class Student {
    private String name;
    private int Chinese;
    private int math;
    public Student(){}
    public Student(String name ,int Chinese,int math) {
        this.name=name;
        this.Chinese=Chinese;
        this.math=math;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChinese() {
        return Chinese;
    }

    public void setChinese(int chinese) {
        Chinese = chinese;
    }

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }
    public int getSum() {
        return this.Chinese+this.math;
    }
}
